package com.ldy.core.common;

import java.io.Serializable;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

public class ApiResult implements Serializable{
	private static final long serialVersionUID = 1L;
	private int code;
	private JSONObject data;
	private String message;
	private Map<String, String> cookies;

	public boolean isOk() {
		return code == 0;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public JSONObject getData() {
		return data;
	}

	public void setData(JSONObject data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, String> getCookies() {
		return cookies;
	}

	public void setCookies(Map<String, String> cookies) {
		this.cookies = cookies;
	}

}
